//
//  ReportProjectItemCell.m
//  efairy
//
//  Created by 李锋 on 2019/3/22.
//  Copyright © 2019年 East. All rights reserved.
//

#import "ReportProjectItemCell.h"

@implementation ReportProjectItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        [self initView];
    }
    return self;
}



-(void)initView{
    self.contentView.backgroundColor = [UIColor whiteColor];
    _projectName = [[UILabel alloc]initWithFrame:CGRectMake(12, 0, self.contentView.frame.size.width, 44)];//报警类型
    _projectName.textColor = ColorFromRGB(0x3f3f3f);
    _projectName.font = [UIFont systemFontOfSize:15.f];
    [self.contentView addSubview:_projectName];
    [self setupAutoHeightWithBottomView:_projectName bottomMargin:0];
}

-(void)setDataModel:(NSString *)projectName{
    _projectName.text = projectName;
}


@end
